/* 
* @Author: obsidian
* @Date:   2015-12-15 19:55:53
* @Last Modified by:   obsidian
* @Last Modified time: 2016-01-30 08:39:47
*/

#ifndef STEER_H
#include "stm32f10x_tim.h"

struct Steer
{
    unsigned short          *CCRx;
    unsigned char           status;
    unsigned short          midvalue;
    unsigned short          limit[2];
    float                   ratio;
    float                   angle;
    
    void                    (*init)();
    void                    (*read_from_sd)();
    void                    (*set_angle)(float angle);
    void                    (*save)();
};


extern struct Steer steer;

#define STEER_H
#endif
